<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
<div class="navigation">
	    <span>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>系统管理&gt;&gt;渠道管理
    </div>
<div class="xt_main_right_center">
<form name="form1" method="post" action="index.do">
  <table width="100%" border="0" align="center">
    <tr>
      <td class="left-td-width-bg">简称：
       </td>
       <td> <input  class="input" type="text" value="${brandDTO.name }" name="brandDTO.name" id="textfield"></td>
    </tr>
    <tr style="background:url(${contextPath}/images/xt_main_right_dhbj.jpg) repeat-x;">
      <td colspan="2" align="right">
        <input type="submit" name="button"  class="btn_query" id="button" value="">
        <input type="reset" name="button2" onClick="clearForm(this.form);return false;"   class="btn_clear_form"  id="button2" value="">      </td>
      </tr>
  </table>
  </form>
  </div>
  <table width="100%" border="0">
    <tr>
      <td align="right">&nbsp;</td>
      <td colspan="2" align="right">&nbsp;</td>
    </tr>
    <tr>
      <td align="left"><font color="#0066CC"><strong>查询结果：</strong></font></td>
      <td colspan="2" align="right"><label>
      <jysz:permission code="SYS_BRAND_ADD">
        <a href="javascript:add()"><img src="${contextPath}/images/btn_add.png" alt="新增" /></a></jysz:permission>
      </label></td>
    </tr>
  </table>
  <table  width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" align="center">
    <tr>
      <td class="top-td-width-bg">序号</td>
      <td class="top-td-width-bg">渠道简称</td>
      <td class="top-td-width-bg">渠道全称</td>
      <td class="top-td-width-bg">操作</td>
    </tr>
        <s:iterator value="page.result" status="i" id="b">
    <tr>
      <td class="down-center-td-width-bg">${i.count }</td>
      <td class="down-center-td-width-bg">${b.name }</td>
      <td class="down-center-td-width-bg">${b.fullName }</td>
      <td class="down-center-td-width-bg">
      <jysz:permission code="SYS_BRAND_EDIT">
      <a href="javascript:update(${b.id })"  title="编辑"><img src="${contextPath}/images/edit.gif" alt="编辑" width="16" height="13" border="0" /></a>
      </jysz:permission></td>
    </tr>
    </s:iterator>
     <tr>
      <td class="down-center-td-width-bg"  colspan="13" align="right"> <%@ include file="/WEB-INF/view/common/pagination.jsp"%></td>
    </tr>
  </table>
  <p>&nbsp;</p>

<script type="text/javascript">
		function jumpPage(page) {
			var searchForm = document.form1;
			searchForm.action = "<s:property value='contextPath'/>/system/brand/index.do?currentPage=" + page;
			searchForm.submit();
		} 
function add(){
	var searchForm = document.form1;
	searchForm.action = "add.do";
	searchForm.submit();
}
function updateTheDefault(id){
	var searchForm = document.form1;
	searchForm.action = "<s:property value='contextPath'/>/system/brand/updateTheDefault.do?currentPage=${currentPage}&id="+id;
	searchForm.submit();
}
function update(id){
	var searchForm = document.form1;
	searchForm.action = "<s:property value='contextPath'/>/system/brand/update.do?currentPage=${currentPage}&brand.id="+id;
	searchForm.submit();
}
</script>
<br/><br/><br/><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
</body>
</html>